package org.dbstar.scheduler.job;

import org.dbstar.scheduler.beans.Job;

/**
 * Job工厂注册类
 * 
 * @author 代波
 * @since 1.0.0
 * @version 1.0.0
 * @date 2012-3-29
 */
public final class JobFactoryRegister {
	private final JobFactory<? extends Job> jobFactory;
	private final JobRunnerFactory jobRunnerFactory;

	public JobFactoryRegister(JobFactory<? extends Job> jobFactory, JobRunnerFactory jobRunnerFactory) {
		super();
		this.jobFactory = jobFactory;
		this.jobRunnerFactory = jobRunnerFactory;
	}

	public JobFactory<? extends Job> getJobFactory() {
		return jobFactory;
	}

	/**
	 * 获得Job执行器构造工厂
	 * 
	 * @return Job执行器构造工厂
	 */
	public JobRunnerFactory getJobRunnerFactory() {
		return jobRunnerFactory;
	}
}
